package com.nineclock.system.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.nineclock.common.entity.NcAuthority;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.naming.Name;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL) // 如果对象中有属性为空，该属性不会序列化
public class SysCommonIndustryDTO extends NcAuthority implements Serializable {

    private String id; //主键
    private String name;//行业名称
    private String parentId; //父行业id
    private Short status; //使用状态：1为可用，0为不可用
    List<SysCommonIndustryDTO> childeren;//子行业列表


    @Override
    public String getAuthority() {
        return name;
    }
}
